// 使用promise封装的nextTick
const promise = Promise.resolve()
export const nextTick = (callback) => {
  return promise.then(callback)
}